// function fn(a,b,...c){
//     console.log(a,b,c);// 1 2   [3,4,5,6,7,8,9,10]
// }
// fn(1,2,3,4,5,6,7,8,9,10);

// function fn(a,b,...c){
//     console.log(a,b,c);// 1 2   [3]
// }
// fn(1,2,3);

// function fn(a,b,...c){
//     console.log(a,b,c);// 1 2   []
// }
// fn(1,2);

const str = null;
const obj = {...str};
console.log({...null});
// console.log(typeof str)